<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>响应式</title>
</head>
<body>
<img src="img/8.png"
     srcset="img/8.png 100w,
     img/66.png 200w"
     sizes="(max-width:500px)20vm,
(max-width:900px) 100vm,2000px"/>
<script>
var img=document.querySelector("img");
img.onclick=function(){
    window.location.href="https://www.jianshu.com/p/607567e488fc"
}
</script>
</body>
</html>